package utilities;

public class TestStatSubclass extends TestStat implements Archiveable {
	String baseValue;
	
	public TestStatSubclass() {
		this(null);
	}
	
	public TestStatSubclass(String base) {
		super();
		this.baseValue = base;
	}
	
	public Archive save() {
		Archive archive = super.save();
		
		archive.putAttribute("baseValue", this.baseValue);
		
		return archive;
	}
	
	public void load(Archive archive) {
		super.load(archive);
		this.baseValue = archive.getAttribute("baseValue");
	}
	
}
